//
//  SLFoundation.h
//  SiloonFramework
//
//  Created by siloon on 6/16/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#ifndef _SLFOUNDATION_H_
#define _SLFOUNDATION_H_

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

#import "SLDebug.h"
#import "SLQueue.h"
#import "SLCallback.h"


FOUNDATION_EXPORT NSString * trim(NSString *str);
FOUNDATION_EXPORT NSString * urlEncode(NSString *str);

FOUNDATION_EXPORT NSString * getAppBundleDirectory();
FOUNDATION_EXPORT NSString * getAppDocumentDirectory();
FOUNDATION_EXPORT NSString * fileNameOfPath(NSString *path);

FOUNDATION_EXPORT CGRect shrinkCGRect(CGRect rect, float shrinkW, float shrinkH);

FOUNDATION_EXPORT NSString * formatMoney(double value);

FOUNDATION_EXPORT BOOL isCoordinateIn(double latN, double latS, double lngW, double lngE, double targetLat, double targetLng);

FOUNDATION_EXPORT BOOL copyFileTo(NSString *sourcePath, NSString *destPath, BOOL isOverwrite);

#endif